package com.zhxi.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhxi.common.utils.PageUtils;
import com.zhxi.common.utils.R;
import com.zhxi.gulimall.product.entity.SpuInfoEntity;
import com.zhxi.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @Author: zhxi
 * @Email: 664480310@qq.com
 * @Date: 2024-08-19 17:41:15
 * @Version: 1.0.0
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    void saveSpuInfo(SpuSaveVo vo);
     void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);
    /**
     * @param spuId spuId
     * @return {@link R }  上架结果
     * @description: 上架商品
     * @author: zx
     * @date: 2024-10-15 15:16
     */
    R up(long spuId);
}

